Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the ability to mirror the Wispar database to the cloud using PocketBase.
If several devices contain the same data, the first device to sync will have its data added to PocketBase. The other devices will update their local sync IDs to match the cloud and avoid duplicates. Any data that is not already in PocketBase will be uploaded and synced on the other devices.
Subsequent syncs work on a most recent changes wins.
If the "Background syncing" option is enabled (on by default), changes will automatically sync when the user interacts with the app (add favorite, hide a publication, follow a journal, etc.) and when starting the app.
Cleans up the local database of duplicated journals.
Added more safeguards against inserting duplicate journals.
The following can be synced:
These will not sync:
Users have the option to use Wispar as before (no sync) or use cloud syncing by either using the "Wispar Sync" server or by self-hosting PocketBase. Users can use the database schema to import the necessary tables into PocketBase.
Users have the ability to delete their cloud account. Doing so automatically wipes all their associated data from the server permanently, the app data on the device is kept intact.
Closes #248